body {
    background-color: darkgray;
    padding: 0;
}
.bi {
    vertical-align: 0;
    fill: white;
}
.bn {
    fill: white;
}
.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0rem 0rem;
    color: transparent;
    background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
    color: transparent;
    background-color: transparent;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    color: transparent;
}
.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: transparent;
}

.rounded-4 { border-radius: .5rem; }
.rounded-5 { border-radius: .75rem; }
.rounded-6 { border-radius: 1rem; }

.modal-sheet .modal-dialog {
    width: 380px;
    transition: bottom .75s ease-in-out;
}
.modal-sheet .modal-footer {
    padding-bottom: 2rem;
}

.modal-alert .modal-dialog {
    width: 380px;
}

.border-right { border-right: 1px solid #eee; }

.modal-tour .modal-dialog {
    width: 380px;
}

.nav-sidebar {
    background-color: #3b3b3b;
    height: 100vh;
    width: 250px;
    position: fixed;
}

@media (max-width: 768px) {

    body {
        padding-top: 70px;
    }

    .navbar,
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }
}

.costume-page {
    text-align: left;
    margin-left: 250px;
    margin-top: 80px;
    margin-bottom: 30px;
}

.form-control-plaintext[readonly] {
    cursor: default;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle {
    cursor: grab !important;
    user-select: none;
    -webkit-user-select: none;
}

.sortable-fallback-override {
    display: table !important;
    table-layout: fixed !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.95); /* Keep visual rows readable while hovering */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
    
    /* 🔴 CRITICAL: Stops the floating row from absorbing mouse pointer focus */
    pointer-events: none !important; 
}

.footer-text {
    text-align: right;
    margin-right: 20px;
    color: white;
}

.carousel {
  margin-bottom: 2px;
}

.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

.carousel-item {
  height: 42rem;
}
.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 42rem;
}

.form-select {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");
}

thead.table-light {
    background-color: transparent !important;
}

.table td, .table th {
    background-color: transparent !important;
}

.btn-close-red {
    color: #ffffff;
    background-color: red;
    border: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    opacity: 1;
}

.btn-close-red:hover {
    background-color: darkred;
}

.gradient-divider {
    width: var(--divider-width, 100%);
    height: var(--divider-height, 2px);
    margin: var(--divider-margin, 10px auto);
    
    background: linear-gradient(
        to right,
        transparent,
        var(--divider-color, #000000),
        transparent
    );
}

.massedit-group-row {
    background: rgba(245,211,39,0.4);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.massedit-group-row:hover {
    background: rgba(255,255,255,0.06);
}

/* nested group styling */
.group-level-1 {
    background: rgba(245,211,39,0.2);
}

.group-level-2 {
    background: rgba(245,211,39,0.1);
}

.group-level-3 {
    background: rgba(255,255,255,0.11);
}

/* visual tree line */
.massedit-group-row td:first-child {
    border-left: 3px solid rgba(255,255,255,0.15);
    padding-left: var(--tree-indent);
}

/* child tasks */
.massedit-child-row td {
    opacity: 0.95;
    padding-left: var(--tree-indent);
}

.group-title {
    border-radius: 1px;
}

/* Floating labels on dark inputs */
.form-floating > label {
    color: rgba(255,255,255,0.65);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #ffffff;
}

/* Dark autofill fix */
.form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #212529 inset !important;
    -webkit-text-fill-color: white !important;
}

.massedit-indent {
    padding-left: var(--tree-indent);
}

@media (max-width: 768px) {

    .nav-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 60px;
    }

    .costume-page {
        margin-left: 0;
        margin-top: 0px;
        padding: 0px;
    }

    .navbar-brand h5 {
        font-size: 1rem;
    }

    .navbar img {
        width: 32px;
        height: 32px;
    }

    .fixed-bottom {
        position: relative !important;
    }
}